package cn.lazydong.dbproperties.config;

import java.lang.reflect.Field;

/**
 * @author HeLingdong
 */
public class SpringValue {

    private Object bean;
    private String key;
    private String defValue;
    private Field declaredField;
    private Boolean accessible;

    public boolean isExistDefValue() {
        return defValue != null;
    }

    public Object getBean() {
        return bean;
    }

    public void setBean(Object bean) {
        this.bean = bean;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDefValue() {
        return defValue;
    }

    public void setDefValue(String defValue) {
        this.defValue = defValue;
    }

    public Field getDeclaredField() {
        return declaredField;
    }

    public void setDeclaredField(Field declaredField) {
        this.declaredField = declaredField;
    }

    public Boolean getAccessible() {
        return accessible;
    }

    public void setAccessible(Boolean accessible) {
        this.accessible = accessible;
    }
}
